/*
 * sharedMemory.h
 *
 *  Created on: 29/set/2014
 *      Author: root
 */

#ifndef SHAREDMEMORY_H_
#define SHAREDMEMORY_H_

#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include "errors.h"

int allocSharedMemory(key_t,int);
void deallocSharedMemory(int);
void *attachSharedMemory(int);
void detachSharedMemory(void *pointer);

//deallocSharedMemory();

#endif /* SHAREDMEMORY_H_ */
